@extends('base')

@section('content')

    <h1>Edit {{ $customer->name }}</h1>

    <!-- if there are creation errors, they will show here -->
    {{ HTML::ul($errors->all()) }}

    {{ Form::model($customer, array('route' => array('customers.update', $customer->id), 'method' => 'PUT')) }}

    <div class="form-group">
        {{ Form::label('name', 'Name') }}
        {{ Form::text('name', null, array('class' => 'form-control')) }}
    </div>


    {{ Form::submit('Edit the Customer!', array('class' => 'btn btn-primary')) }}

    {{ Form::close() }}

@stop